import {
	request
} from "../utils/request.js"

/**
 * 积分排行版
 * @param {} data 
 * @returns 
 */
export const integralListApi = (data) => {
    return request({
        url: '/party/declaration/ranking',
        method: 'get',
       data
    })
}
/**
 * 积分明细
 */
export const integralDetailApi = (data) => {
    return request({
        url: '/party/declaration/list',
        method: 'post',
        data
    })
}
/**
 * 积分申报
 */
export const integralApplyApi = (data) => {
    return request({
        url: '/party/declaration',
        method: 'post',
        data
    })
}
/**
 * 积分申报审核
 */
export const integralAuditApi = (data) => {
    return request({
        url: '/party/declaration',
        method: 'put',
        data
    })
}
/**
 * 附件预览
 */
export const integralPreviewApi = (data) => {
    return request({
        url: '/common/preview?url='+data,
        method: 'post',
        responseType: 'arraybuffer'
    })
}

